package com.wx.tgp.designpattern.proxyPattern.bookProxyPattern;

/**
 * 代理对象-----负责把真实的对象进行控制
 */
public class Proxy implements Subject{

    private RealSubject realSubject;

    @Override
    public void Request() {
        if(realSubject==null){
            realSubject = new RealSubject();
        }
        realSubject.Request();
    }
}
